package com.dream52.pms.base;

/**
 * 自定义异常
 * @author pcw
 *
 */
public class PmsException extends RuntimeException {
	private Integer retCode;
	private String retMsg;

	public PmsException(Integer retCode) {
		super(PmsConstant.ERROR_MAP.get(retCode));
		this.retCode = retCode;
		this.retMsg = PmsConstant.ERROR_MAP.get(retCode);
	}
	
	public PmsException(int retCode, String retMsg) {
		super(retMsg);
		this.retCode = retCode;
		this.retMsg = retMsg;
	}

	public Integer getRetCode() {
		return retCode;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetCode(Integer retCode) {
		this.retCode = retCode;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

}
